package com.link.base.base.product.dao.mybatis.mapper;

import com.link.base.base.product.model.ShopCart;
import com.link.core.basic.dao.mapper.BasicMapper;

import java.util.List;

/**
 * 小程序登录下使用特有的查询sql
 * @author KuangRuifeng
 * @date 2018/10/29
 */
public interface MpShopCartMapper extends BasicMapper<ShopCart> {

    /**
     * 查询购物车产品数量
     * @param entity
     * @return 数量
     * @throws Exception
     */
    int queryEmpProdCount(ShopCart entity) throws Exception;

    /**
     * 查询购物车
     * @param shopC
     * @return 列表
     * @throws Exception
     */
    List<ShopCart> queryByMpExamplePage(ShopCart shopC) throws Exception;

    /**
     * 修改是否被选中
     * @author lujiang
     * @param entity 购物车
     * @throws Exception
     */
    public void selectedUpdate(ShopCart entity) throws Exception;

    /**
     * 全选
     * @author lujiang
     * @param shopCart 购物车
     * @throws Exception
     */
    void allSelectedUpdate(ShopCart shopCart) throws Exception;

    /**
     * 全不选
     * @author lujiang
     * @param shopCart 购物车
     * @throws Exception
     */
    void removeSelectedUpdate(ShopCart shopCart)  throws Exception;
}
